﻿<UserControl x:Class="SS.WPFusercontrol.Customer"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="420" d:DesignWidth="830">
    <Grid ShowGridLines="True" IsManipulationEnabled="False" Height="430" Width="835">
        <Button Content="添加" Height="23" HorizontalAlignment="Left" Margin="603,29,0,0" Name="InsertButton" VerticalAlignment="Top" Width="75" FontFamily="Global User Interface" FontSize="13" Click="InsertButton_Click" />
        <Label Content="Label" Height="24" HorizontalAlignment="Left" Margin="156,46,0,0" Name="ErrorLabel" VerticalAlignment="Top" Width="282" Visibility="Hidden" FontWeight="Normal" Foreground="Red" />
        <Button Content="查询" Height="23" HorizontalAlignment="Left" Margin="705,57,0,0" Name="QueryButton" VerticalAlignment="Top" Width="75" FontFamily="Global User Interface" FontSize="13" Click="QueryButton_Click" />
        <Button Content="更新" Height="23" HorizontalAlignment="Left" Margin="603,87,0,0" Name="UpdateButton" VerticalAlignment="Top" Width="75" FontFamily="Global User Interface" FontSize="13" Click="UpdateButton_Click" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="156,17,0,0" Name="NameTextbox" VerticalAlignment="Top" Width="131" />
        <Label Content="姓名" Height="25" HorizontalAlignment="Left" Margin="63,17,0,0" Name="label1" VerticalAlignment="Top" Width="75" FontFamily="Global User Interface" FontSize="13" FontWeight="Normal" FontStyle="Normal" />
        <Label Content="备注" Height="28" HorizontalAlignment="Left" Margin="63,76,0,0" Name="label2" VerticalAlignment="Top" Width="75" FontFamily="Global User Interface" FontSize="13" FontWeight="Normal" />
        <TextBox Height="64" HorizontalAlignment="Left" Margin="156,76,0,0" Name="DesriptionTextbox" VerticalAlignment="Top" Width="393" AutoWordSelection="False" TextWrapping="Wrap" FontStretch="Normal" />
        <DataGrid Height="179" HorizontalAlignment="Left" Margin="12,154,0,0" Name="dataGrid1" VerticalAlignment="Top" Width="768" SelectionMode="Single" CanUserResizeRows="False" EnableRowVirtualization="False" IsEnabled="True" AutoGenerateColumns="False" MouseDoubleClick="dataGrid1_MouseDoubleClick">
            <DataGrid.Columns>
                <DataGridCheckBoxColumn  IsReadOnly="False" ></DataGridCheckBoxColumn>
                <DataGridTextColumn Header="序号" Binding="{Binding CustomerID}" FontFamily="Global User Interface" FontSize="13" FontStyle="Normal" Width="10*" IsReadOnly="True" />
                <DataGridTextColumn Header="姓名" Binding="{Binding CustomerName}" FontFamily="Global User Interface" FontSize="15"  Width="10*" IsReadOnly="True"/>
                <DataGridTextColumn Header="电话" Binding="{Binding PhoneNumber}" FontFamily="Global User Interface" FontSize="15" Width="15*" IsReadOnly="True"/>
                <DataGridTextColumn Header="备注" Binding="{Binding Description}" FontFamily="Global User Interface" FontSize="15" Width="35*" IsReadOnly="True"/>
                <DataGridTextColumn Header="创建日期" Binding="{Binding CreateDate}" FontFamily="Global User Interface" FontSize="15" Width="15*" IsReadOnly="True"/>
                <DataGridTextColumn Header="更新日期" Binding="{Binding UpdateDate}" FontFamily="Global User Interface" FontSize="15" Width="15*" IsReadOnly="True"/>
            </DataGrid.Columns>
        </DataGrid>
        <Button Content="全选/全不选" Height="23" HorizontalAlignment="Left" Margin="12,347,0,0" Name="SelectAllButton" VerticalAlignment="Top" Width="75" Click="SelectAllButton_Click" />
        <Button Content="删掉" Height="23" HorizontalAlignment="Left" Margin="130,347,0,0" Name="DeleteButton" VerticalAlignment="Top" Width="75" Click="DeleteButton_Click" />
        <Label Content="电话" FontFamily="Global User Interface" FontSize="13" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="317,17,0,0" Name="label3" VerticalAlignment="Top" Width="75" />
        <TextBox AutoWordSelection="False" FontStretch="Normal" Height="24" HorizontalAlignment="Left" Margin="373,17,0,0" Name="PhoneNumberTextBox" VerticalAlignment="Top" Width="176" />
    </Grid>
</UserControl>
